package creationPattern.Builder.Builder_01;

import creationPattern.Builder.Builder_01.builder.Builder;
import creationPattern.Builder.Builder_01.builder.HelloBikeBuilder;
import creationPattern.Builder.Builder_01.director.Director;
import creationPattern.Builder.Builder_01.product.Bike;

/**
 * 调用者
 */
public class Cilent_01 {
    public static void main(String[] args) {
        // 1、创建一个具体建造者，用抽象建造者接参
        Builder builder = new HelloBikeBuilder();
        // 2、创建一个指挥者
        Director director = new Director(builder);
        // 3、通过建造者调用产品创建方法
        Bike construct = director.construct();
        System.out.println(construct);
    }
}
